function meanHit = oneBatch(timeLag,ship, bomber, bombRadius, nGames)

%store every single outcome, so we can perfrom statistics on it later
hit = zeros(nGames,1);          %hit(i) is true if the bomber hit the ship in the ith game

%play the games
for i=1:nGames
    [h,t,shipPos,dropPos] = game(timeLag,ship, bomber, bombRadius);
    hit(i) = h;
end

meanHit = mean(hit);

plot(shipPos(:,1),shipPos(:,2), dropPos(1), dropPos(2), 'x'); %plot the path of the ship
